package com.inspur.edp.common.type;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

@Data
public class DecorationOption {

    public final static String DOCUMENT_NAME = "document";

    private String name;

    private Map<String, String> optionMap;

    public DecorationOption(String name, Map<String, String> optionMap) {
        this.name = name;
        this.optionMap = optionMap;
    }

    public DecorationOption() {
        this.optionMap = new HashMap<>();
    }

    @JsonIgnore
    public String getValue(String key) {
        return this.optionMap.get(key);
    }

    @JsonIgnore
    public void put(String key, String value) {
        this.optionMap.put(key, value);
    }

}
